package _0807_1;

public class Test {
    public static void main(String[] args) {
        Student s = new Student("小王", 18, "上海", "JSD2507", "2019001");
        s.eat();
        s.sleep();
        s.study();
        s.sayHi();

        Teacher t = new Teacher("张三", 28, "北京", 5000.0);
        t.sleep();
        t.eat();
        t.teach();
        t.sayHi();

        Doctor d = new Doctor("王五", 38, "上海", "兽医");
        d.sleep();
        d.eat();
        d.cut();
        d.sayHi();
    }
}
